<?php
/**
 * $ModDesc
 * 
 * @version		$Id: helper.php $Revision
 * @package		modules
 * @subpackage	mod_lofflashcontent
 * @copyright	Copyright (C) Dec 2009 LandOfCoder.com <@emai:landofcoder@gmail.com>. All rights reserved.
 * @license		GNU General Public License version 2
 */
// no direct access
defined('_JEXEC') or die;

// Include the syndicate functions only once
require_once dirname(__FILE__).DS.'helper.php';

$list = modLofFlashContentHelper::getList( $params );
modLofFlashContentHelper::loadMediaFiles( $params, $module );

require( JModuleHelper::getLayoutPath($module->module) );

?>
<script type="text/javascript">
	var _lofmain =  $('lofslidecontent<?php echo $module->id; ?>');
	var _lofscmain = _lofmain.getElement('.lof-slidecontent-main');
	var _lofnavigator = _lofmain.getElement('.lof-slidecontent-navigator-outer');
	var object = new LofFlashContent( _lofscmain, _lofnavigator,
									 { fxObject:{ transition:<?php echo $params->get( 'effect', 'Fx.Transitions.Quad.easeIn' );?>,  duration:<?php echo (int)$params->get('duration', '700')?>},
									 interval:<?php echo (int)$params->get('interval', '3000'); ?>,
									 layoutStyle:'<?php echo $params->get('layout_style','hrright');?>'} )
	.registerButtonsControl( 'click', { next	  :_lofmain.getElement('.lof-button-next'),
										 previous :_lofmain.getElement('.lof-button-previous')}
	).start( true );
</script>